package org.onion.pattern.event.io;

public interface EventDeserializer {

    String type();

    <T> T deserialize(byte[] payload, Class<T> clazz);

    /**
     * 越小越先执行
     */
    default    int getOrder(){
        return 0;
    }

}
